.project-detail {
  display: grid;
  grid-template-columns: 1.3fr 1fr; /* make left col wider */
  gap: 40px; /* keep breathing space */
  margin: 40px;
  align-items: start;
}
.project-col {
  border: 3px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 32px;
}


.project-col.image {
  margin-left: 0; /* start closer to border */
}

.project-col.image video {
  width: 100%;
  height: 600px;
  border-radius: 8px;
  display: block;
  padding-bottom: 100px;
}

.project-col.image img {
  width: 100%;
  height: 490px;
  border-radius: 8px;
  display: block;
  margin-bottom: 120px;
  
}

.project-col.text h2 {
  font-family: "Press Start 2P", sans-serif;
  font-size: 22px;
  margin-bottom: 20px;
  margin-top: 1px;
}

.project-col.text h3 {
  font-family: "Press Start 2P", sans-serif;
  font-size: 16px;
  margin: 30px 0 10px;

}

.project-col.text p,
.project-col.text li {
  font-family: "VT323", monospace;
  font-size: 20px;
  line-height: 1.7;
  margin-bottom: 1px;
}

.project-col.text ul {
  list-style: none;
  padding-left: 0;
}

.project-col.text ul li::before {
  content: "▹ ";
  color: var(--accent);
}

.project-links {
  margin-top: 40px;
  text-align: center;
}
.project-links .btn {
  margin: 10px;
  color: goldenrod;
}


.project-detail-wrapper {
  position: relative;
  padding-top: 120px;   /* space at the top for the close button */
  padding-bottom: 80px; /* space at the bottom for breathing room */
}

.project-detail {
  display: grid;
  grid-template-columns: 1.3fr 1fr; 
  gap: 40px;
  margin: 0 40px;       /* remove top/bottom margin, let wrapper handle spacing */
  align-items: start;
}

.close-btn {
  position: absolute;
  top: 40px;            /* sits in the padding area above the boxes */
  right: 40px;
  background: goldenrod;
  color: white;
  font-family: "Press Start 2P", sans-serif;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 9999;
  transition: 0.2s;
}

.close-btn:hover {
  background: #c58c00;
  transform: scale(1.05);
}


